#ifndef _TEST_COMMON_H
#define _TEST_COMMON_H

#include "Eix.h"
#include "unistd.h"

#define UNIX_PATH "/tmp/eix-test01"

typedef struct _Test_Message_Welcome
{
	int i;
} Test_Message_Welcome;

typedef struct _Test_Message_Question
{
	char *s;
} Test_Message_Question;

typedef struct _Test_Message_Answer
{
	char *s;
} Test_Message_Answer;

extern Eix_Message *TEST_MESSAGE_WELCOME;
extern Eix_Message *TEST_MESSAGE_QUESTION;
extern Eix_Message *TEST_MESSAGE_ANSWER;
extern Eix_Message *TEST_MESSAGE_ACK;
extern Eix_Message *TEST_MESSAGE_BYE;
extern Eina_Bool test_end;
extern Eina_Bool test_connected;

void test_common_init(void);
void test_common_shutdown(void);
Eix_Server * test_common_connect(void);
Eix_Server * test_common_serve(void);
void test_common_server_process(Eix_Server *s);

#endif
